<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>

	<head>
		<title>库存管理-库存调配-查看库存调配</title>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>libs/bootstrap-3.3.7-dist/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>libs/bootstrap-table-master/dist/bootstrap-table.min.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/reset.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style.css">
		<link rel="stylesheet" type="text/css" href="<%=basePath%>css/iframe.css">

	</head>

	<body>
		<div id="mainContent">
			<div id="mainContent_content">
				<div class="page_header">
					<a href="<%=basePath%>storageDistribute/selectByWhere.do">库存调配</a> <i class="icon-double-right"></i>
					<a>查看库存调配</a>
				</div>

				<div class="btn rightBtn">
					<input type="button" value="返回" onclick="location.href='<%=basePath%>storageDistribute/selectByWhere.do'" class="btn btn2"></input>
				</div>
				<form id="generalStorageForm" class="form">
					<div id="requisitionForm" class="box">
						<p>
							<label>调配单号</label>
							<input type="text" readonly class="form-control" value="${storageDistribute.distributeNumber }"></input>
							<label>调配人</label>

							<input type="text" readonly value="${user2.loginName }" class="form-control"></input> <label> 状态</label>
							<select name="status" class="form-control select" disabled="disabled">
								<option value="0" <c:if test="${storageDistribute.status=='0'}">selected</c:if>>未提交</option>
								<option value="1" <c:if test="${storageDistribute.status=='1'}">selected</c:if>>已提交</option>
							</select>

						</p>
						<p>
							<label> 原仓库</label>
							<select name="fromWarehouseID" onchange="gradeChange()" class="form-control select" disabled="disabled">
								<c:forEach items="${warehouseList }" var="warehouse">
									<option value="${warehouse.warehousemanagementid }" <c:if test="${storageDistribute.fromWarehouseID==warehouse.warehousemanagementid }">selected</c:if>>${warehouse.warehousename }</option>
								</c:forEach>
							</select> <label> 目标仓库</label>
							<select name="toWarehouseID" class="form-control select" disabled="disabled">
								<c:forEach items="${warehouseList }" var="warehouse">
									<option value="${warehouse.warehousemanagementid }" <c:if test="${storageDistribute.toWarehouseID==warehouse.warehousemanagementid }">selected</c:if>>${warehouse.warehousename }</option>
								</c:forEach>
							</select> <label>备注</label> <input type="text" name="remark" class="form-control doubleWidth" readonly value="${storageDistribute.remark}"></input>

					</p>
				</div>
				<div class="tableBox box ">
					<table class="table table-bordered table_text_center ">
						<thead>
							<tr>
								<th>批次号</th>
								<th>物品名称</th>
								<th>物品条码</th>
								<th>品牌</th>

								<th>该批次数量</th>
								<th>调配数量</th>
								<th>规格</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${list2}" var="i" varStatus="in">
								<tr>
									<td>${i.batchNumber}</td>
									<td>${i.chineseName}</td>
									<td>${i.articleBarCode}</td>
									<td>${i.brand}</td>

									<td>${i.number}</td>
									<td>${i.number1}</td>
									<td>${i.salesspecifications}${i.salesunit}</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
				<div class="box updateBox ">
					<p>
						<label>创建人</label> 
						<input type="text" class="form-control doubleWidth" readonly value="${user2.loginName } "></input>
						<label>创建时间</label> 
						<input type="text" class="form-control doubleWidth" readonly value="<fmt:formatDate value='${storageDistribute.createTime  }' pattern="yyyy-MM-dd HH:mm:ss" /> "></input> 
						<br>
						<label>最后处理人</label> 
						<input type="text" class="form-control doubleWidth" readonly value="${user3.loginName } "></input>
						<label>最后处理时间</label>
						<input type="text" class="form-control doubleWidth" readonly value="<fmt:formatDate value='${storageDistribute.lastTime  }' pattern="yyyy-MM-dd HH:mm:ss" /> "></input> 
						<br>
						<label>最后提交人</label> 
						<input type="text" class="form-control doubleWidth" readonly value="${user4.loginName } "></input>
						<label>最后提交时间</label>
						<input type="text" class="form-control doubleWidth" readonly value="<fmt:formatDate value='${storageDistribute.commitTime  }' pattern="yyyy-MM-dd HH:mm:ss" />"></input>
					</p>
				</div>

			</form>
		</div>
	</div>
	<script src="<%=basePath%>js/jquery-3.2.1.min.js"></script>
							<script src="<%=basePath%>libs/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
							<script src="<%=basePath%>libs/bootstrap-table-master/dist/bootstrap-table.js"></script>
							<script src="<%=basePath%>libs/bootstrap-table-master/dist/locale/bootstrap-table-zh-CN.min.js"></script>
							<script src="<%=basePath%>My97DatePickers/WdatePicker.js"></script>
							<script src="<%=basePath%>js/public.js"></script>
	</body>

</html>